Skip to main content

SubsetCases

SubsetCases[list,patt] gives a list of the sublists in list that match the pattern patt in any order.

SubsetCases[list,patt->rhs] gives a list of the values of rhs corresponding to matching sublists.

SubsetCases[list,patt,n] includes only the first n matches.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.